public class Bookshelf {
    private Book[] books=new Book[100];
    public int capacity=100;

    public int cur=0;
    public void add(String name,double price,String author){
        if(cur==capacity){
            System.out.println("书架容量满了,需先扩容");
        }else {
            Book a=new Book();
            a.name=name;
            a.author=author;
            a.isBorrow=false;
            a.price=price;
            books[cur]=a;

        }


    }

    public void pushBook(String name){


    }


}
